
find_package(roscpp REQUIRED)
find_package(image_transport REQUIRED)
find_package(roscpp_serialization REQUIRED)
find_package(rviz REQUIRED)
find_package(cv_bridge REQUIRED)
find_package(OpenCV  REQUIRED)
find_package(PCL REQUIRED)
add_definitions(${PCL_DEFINITIONS})
find_package( Eigen3 REQUIRED )
find_package(Boost REQUIRED)
find_package(Threads)
ADD_DEFINITIONS(-DBOOST_LOG_DYN_LINK)

FIND_PACKAGE(Qt5 COMPONENTS Core REQUIRED PATHS $ENV{Qt5_HOME})

SET(MY_DICTIONARYS ${OpenCV_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS} ${Boost_INCLUDE_DIR}
        ${EIGEN3_INCLUDE_DIR} ${cv_bridge_INCLUDE_DIRS} ${rviz_INCLUDE_DIRS}
        ${roscpp_INCLUDE_DIRS} ${image_transport_INCLUDE_DIRS} ${roscpp_serialization_INCLUDE_DIRS})

SET(MY_LIBS 
    Qt5::Core 
    ${OpenCV_LIBS}
    ${PCL_LIBRARIES}
    ${roscpp_LIBRARIES}
    ${roscpp_serialization_LIBRARIES}
    ${cv_bridge_LIBRARIES}
    ${rviz_LIBRARIES}


    zkbs
    fastrtps
    fastcdr
    -ldl


    -DBOOST_LOG_DYN_LINK
    -lboost_log
#     -lpthread
    -lboost_log_setup
    -lboost_thread
    -lboost_system

    -lrt)